package com.jd.after.modules.mis.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jd.after.modules.sys.entity.Dict;

/**
 * 作业
 * @TableName
 * 
 * @TableId
 * 
 * 后端验证 @NotBlank
 * 
 *  Serializable 
 */
@TableName("m_homework")
public class Homework implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Long id;

    @NotBlank(message = "不能为空")
    private String xh;

    private String xm;
    private String hname;
    private String hhref;

    
    //字典  作业类型
    private Long homeType;
    
    //辅助字段，数据库不存在
    @TableField(exist = false)
    private String homeTypeName;

    @TableField(exist = false)
    private Dict  dict;



    



    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commitTime;

     
    public Dict getDict() {
        return dict;
    }

    public void setDict(Dict dict) {
        this.dict = dict;
    }

    public String getHomeTypeName() {
        return homeTypeName;
    }

    public void setHomeTypeName(String homeTypeName) {
        this.homeTypeName = homeTypeName;
    }

    public Long getHomeType() {
        return homeType;
    }

    public void setHomeType(Long homeType) {
        this.homeType = homeType;
    }
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getXm() {
        return xm;
    }

    public void setXm(String xm) {
        this.xm = xm;
    }

    public String getHname() {
        return hname;
    }

    public void setHname(String hname) {
        this.hname = hname;
    }

    public String getHhref() {
        return hhref;
    }

    public void setHhref(String hhref) {
        this.hhref = hhref;
    }

    public LocalDateTime getCommitTime() {
        return commitTime;
    }

    public void setCommitTime(LocalDateTime commitTime) {
        this.commitTime = commitTime;
    }

}